<table class="bordered">
	<thead>
    	<tr>
        	<th colspan="4">
				<?= trans('title_page_banner'); ?>
                <a href="<?= admincp_url()?>banner/upload" style="float:right"><?= trans('upload'); ?></a>
            </th>
        </tr>
	</thead>
	<tbody>
    	<tr>
        	<td><?= trans('catalogue') ?></td>
        	<td><?= trans('images') ?></td>
            <td colspan="2"><?= trans('action') ?></td>
        </tr>
        <?php
        	foreach($info as $item){
				echo "<tr>";
					echo "<td>".$item['cata_name']."</td>";
					echo "<td><img src='".base_url().$item['banner_path']."'></td>";
					echo "<td>";
						if($item['banner_active'] != 0){
							echo "<img class='active' banner_id='".$item['banner_id']."' src='".base_url()."public/images/icons/apply.png' style='cursor:pointer;' />";
						}else{
							echo "<img class='active' banner_id='".$item['banner_id']."' src='".base_url()."public/images/icons/disable.png' style='cursor:pointer;' />";	
						}
					echo "</td>";
					echo "<td><a href=\"".base_url()."admincp/banner/edit/id/".$item['banner_id']."\"><img src='".base_url()."public/images/icons/edit.png' /></a></td>";
					echo "<td><a href=\"".base_url()."admincp/banner/delete/id/".$item['banner_id']."\" class=\"delete\"><img src='".base_url()."public/images/icons/delete.png' /></a></td>";
				echo "</tr>";
			}
		?>
	</tbody>
</table>
<div id="jquery_link" align="center">
	<?php echo $pagination;?>
</div>